<?php
/** 
 * 系统默认验证器的中文翻译,暂时放着
 * @author Ju
 * 
 * 
 */
class Application_Service_I18nvalitorcn
{
	/**
	 * 获取中文翻译
	 */
    function getCn (){
    	return new Zend_Translate('array',$CHtranslator = array(
			//=====================================
			//这里是class名Zend_Validate_Alnum
			//../library/Zend/Validate/Alnum.php
			//=====================================
			Zend_Validate_Alnum::INVALID 		=> "无效的类型。预期的是字符串，整数或浮点数", //这是例子
			Zend_Validate_Alnum::NOT_ALNUM 		=> "'%value%' 包含非字母和没有数字的字符",
			Zend_Validate_Alnum::STRING_EMPTY 	=> "'%value%' 是一个空字符串",
		
		
			//=====================================
			//这里是class名Zend_Validate_NotEmpty
			//../library/Zend/Validate/NotEmpty.php
			//=====================================
			Zend_Validate_NotEmpty::BOOLEAN => "布尔",
			Zend_Validate_NotEmpty::INTEGER => "整数",
			Zend_Validate_NotEmpty::FLOAT   => "浮点数",
			Zend_Validate_NotEmpty::STRING  => "字符串",
			Zend_Validate_NotEmpty::ZERO    => "零",
			Zend_Validate_NotEmpty::EMPTY_ARRAY => "空数组",
			Zend_Validate_NotEmpty::NULL => "空",
			Zend_Validate_NotEmpty::PHP  => "PHP",
			Zend_Validate_NotEmpty::SPACE => "间隔",
			Zend_Validate_NotEmpty::OBJECT => "对象",
			Zend_Validate_NotEmpty::OBJECT_STRING => "对象字符串",
			Zend_Validate_NotEmpty::OBJECT_COUNT => "对象数量",
			Zend_Validate_NotEmpty::ALL => "所有",
			Zend_Validate_NotEmpty::INVALID => "非空无效",
			Zend_Validate_NotEmpty::IS_EMPTY => "必填字段",
		
		
			//=====================================
			//这里是class名Zend_Validate_Regex
			//../library/Zend/Validate/Regex.php
			//=====================================
			Zend_Validate_Regex::INVALID => "非空无效",
			Zend_Validate_Regex::NOT_MATCH => "输入无效",
			Zend_Validate_Regex::ERROROUS => "很多错误",
		
		
			//=====================================
			//这里是class名Zend_Validate_StringLength
			//../library/Zend/Validate/StringLength.php
			//=====================================
			Zend_Validate_StringLength::INVALID => "无效的类型",
			Zend_Validate_StringLength::TOO_SHORT => "字数不得小于 %min%", //"'%value%' 字符长度小于 %min%",
			Zend_Validate_StringLength::TOO_LONG => "字数不得大于 %max% ",//"'%value%'  字符长度大于 %max% ",
		
		
			//=====================================
			//这里是class名Zend_Validate_Alpha
			//../library/Zend/Validate/Alpha.php
			//=====================================
			Zend_Validate_Alpha::INVALID => "透明无效",
			Zend_Validate_Alpha::NOT_ALPHA => "不能透明",
			Zend_Validate_Alpha::STRING_EMPTY => "空字符串",
		
		
			//=====================================
			//这里是class名Zend_Validate_Between
			//../library/Zend/Validate/Between.php
			//=====================================
			Zend_Validate_Between::NOT_BETWEEN => "'%value%' 不在 '%min%' 和 '%max%' 之间",
			Zend_Validate_Between::NOT_BETWEEN_STRICT => "'%value%' 不是严格的在 '%min%' 和 '%max%' 之间",
		
		
			//=====================================
			//这里是class名Zend_Validate_Date
			//../library/Zend/Validate/Date.php
			//=====================================
			Zend_Validate_Date::INVALID => "给出无效的类型。字符串、整数数组或zend日期预期",
			Zend_Validate_Date::INVALID_DATE => "'value%' 似乎没有一个有效的日期",
			Zend_Validate_Date::FALSEFORMAT => "'%value%'并不适合%format%的日期格式",
		
		
			//=====================================
			//这里是class名Zend_Validate_Digits
			//../library/Zend/Validate/Digits.php
			//=====================================
			Zend_Validate_Digits::NOT_DIGITS => "'%value%' 必须只包含数字",
			Zend_Validate_Digits::STRING_EMPTY=> "'%value%' 是一个空字符串",
			Zend_Validate_Digits::INVALID=>"无效型给定. 字符串, 整数或浮子预期",
		
		
			//=====================================
			//这里是class名Zend_Validate_EmailAddress
			//../library/Zend/Validate/EmailAddress.php
			//'%hostname%' | '%value%' | '%localPart%'
			//=====================================
			Zend_Validate_EmailAddress::INVALID =>  "无效的类型(和预期的不一样)",
			Zend_Validate_EmailAddress::INVALID_FORMAT => "不是有效的电子邮件",
			Zend_Validate_EmailAddress::INVALID_HOSTNAME =>" 没有有效的主机名的电子邮件地址吗'%value%'",
			Zend_Validate_EmailAddress::INVALID_MX_RECORD => "电子邮件'%value%'不在'%hostname%'记录里",
			Zend_Validate_EmailAddress::INVALID_SEGMENT => "'%hostname%' 不在可用的路由网段. %value%'不应该被解决了从公共网络",
			Zend_Validate_EmailAddress::DOT_ATOM =>  "'%localPart%' 不能匹配对点atom格式",
			Zend_Validate_EmailAddress::QUOTED_STRING =>"'%localPart%' 不能匹配对引用的字符串格式",
			Zend_Validate_EmailAddress::INVALID_LOCAL_PART =>  "'%localPart%'没有有效的本地部分对于电子邮件地址'%value%'",
			Zend_Validate_EmailAddress::LENGTH_EXCEEDED => "'%value%'超过允许的长度",
		
		
			//=====================================
			//这里是class名Zend_Validate_Float
			//../library/Zend/Validate/Float.php
			//=====================================
			Zend_Validate_Float::INVALID=>"给定无效的类型. 一行, 整数或浮子预期",
			Zend_Validate_Float::NOT_FLOAT => "'%value%' 不是浮点型",
		
		
			//=====================================
			//这里是class名Zend_Validate_Int
			//../library/Zend/Validate/Int.php
			//=====================================
			Zend_Validate_Int::INVALID=> "无效型给定.字符串或整数预期",
			Zend_Validate_Int::NOT_INT=> "'%value%'不是整形",
		
		
			//=====================================
			//这里是class名Zend_Validate_GreaterThan
			//../library/Zend/Validate/GreaterThan.php
			//=====================================
			Zend_Validate_GreaterThan::NOT_GREATER => "'%value%' 不大于' % min %’",
		
		
			//=====================================
			//这里是class名Zend_Validate_LessThan
			//../library/Zend/Validate/LessThan.php
			//=====================================
			Zend_Validate_LessThan::NOT_LESS => "'%value%' 不小于 '%max%'",
		
		
			//=====================================
			//这里是class名Zend_Validate_Identical
			//../library/Zend/Validate/Identical.php
			//=====================================
			Zend_Validate_Identical::NOT_SAME=> "这两个令牌不匹配",
			Zend_Validate_Identical::MISSING_TOKEN => '没有令牌提供了要匹配的',
		
		
			//=====================================
			//这里是class名Zend_Validate_InArray
			//../library/Zend/Validate/InArray.php
			//=====================================
			Zend_Validate_InArray::NOT_IN_ARRAY=> "'%value%' 没有在文件中发现",
		
		
			//=====================================
			//这里是class名Zend_Validate_Ip
			//../library/Zend/Validate/Ip.php
			//=====================================
			Zend_Validate_Ip::INVALID => "无效的类型给出。预期字符串",
			Zend_Validate_Ip::NOT_IP_ADDRESS=> "'%value%' 没有一个有效的IP地址",
		),'cn');
    }
}